projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c210c79
)
Add tool for Makefile target more-clean.
author
oliskoli
<oliskoli>
Sat, 22 Jul 2006 16:25:36 +0000
(16:25 +0000)
committer
oliskoli
<oliskoli>
Sat, 22 Jul 2006 16:25:36 +0000
(16:25 +0000)
'make more-clean' (mkmoreclean) deletes all files listed in .cvsignore files.
Makefile.in
patch
|
blob
|
history
tools/mkmoreclean
[new file with mode: 0755]
patch
|
blob
diff --git
a/Makefile.in
b/Makefile.in
index c47dd73750a019777a22d6379d3710d21232c1c6..224945defffc8b76605361524f9fd8d2a0a91c63 100644
(file)
--- a/
Makefile.in
+++ b/
Makefile.in
@@
-103,6
+103,9
@@
jeeps/gpslibusb.o:
clean:
rm -f $(OBJS) gpsbabel gpsbabel.exe
+more-clean: clean
+ tools/mkmoreclean
+
check:
./testo
diff --git a/tools/mkmoreclean
b/tools/mkmoreclean
new file mode 100755
(executable)
index 0000000..
030e7c1
--- /dev/null
+++ b/
tools/mkmoreclean
@@ -0,0
+1,15
@@
+#!/bin/sh
+
+#
+# delete all files listed in .cvsignore
+#
+
+find . -type d |
+while read dirname; do
+ test -s "$dirname/.cvsignore" || continue
+ while read filemask; do
+ test -z "$filemask" && continue
+ cmd="rm -fv $dirname/$filemask"
+ ${cmd}
+ done < "$dirname/.cvsignore"
+done